//
//  ItemCollectionViewCell.m
//  HappinessTrip
//
//  Created by dllo on 15/10/15.
//  Copyright © 2015年 蓝鸥科技. All rights reserved.
//

#import "ItemCollectionViewCell.h"
#import "UIImageView+WebCache.h"

@implementation ItemCollectionViewCell

-(void)dealloc
{
    [_imageView release];
    [super dealloc];
}
-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.imageView = [[UIImageView alloc]init];
        self.imageView.frame = self.contentView.frame;
        [self.contentView addSubview:self.imageView];
        [self.imageView release];
    }
    return self;
}
-(void)setItem:(Items *)item
{
    if (_item != item) {
        [_item release];
        _item = [item retain];
    }
    [_imageView sd_setImageWithURL:[NSURL URLWithString:_item.photo_s]placeholderImage:[UIImage imageNamed:@"dengdai"]];
}










@end
